#
# libgist documentation build file
#

#
# This file is part of libgist.
#
# libgist is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.
#
# libgist is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU General Public License
# along with libgist; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
#

#
# REVISION HISTORY
#
# $HeadURL: http://libgist.googlecode.com/svn/branches/siagian_dev/doc/CMakeLists.txt $
# $Id: CMakeLists.txt 39 2011-08-21 07:47:29Z libgist@gmail.com $
#

# Min cmake version
cmake_minimum_required(VERSION 2.8)

# Project name and version
project(gistdoc)

# Program checks
find_package(Doxygen)
if(DOXYGEN_FOUND)
   configure_file("${CMAKE_CURRENT_SOURCE_DIR}/doxyfile.in"
                  "${CMAKE_CURRENT_BINARY_DIR}/doxyfile" @ONLY)
   add_custom_target(doc ALL ${DOXYGEN_EXECUTABLE}
                     ${CMAKE_CURRENT_BINARY_DIR}/doxyfile
                     WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
                     COMMENT "Generating documentation")
endif(DOXYGEN_FOUND)
